package nuc.ss.wl.service.impl;


import nuc.ss.wl.dao.SCDao;
import nuc.ss.wl.dao.impl.SCDaoImpl;
import nuc.ss.wl.entity.SC;
import nuc.ss.wl.entity.S_SC_C;
import nuc.ss.wl.service.SCService;

import java.util.List;

public class SCServiceImpl implements SCService {

    private SCDao scDao = new SCDaoImpl();
    @Override
    public int add(SC sc) {
        return this.scDao.save(sc);
    }

    @Override
    public int delete(int sno, int cno) {
        return this.scDao.delete(sno, cno);
    }

    @Override
    public int update(SC sc) {
        return this.scDao.update(sc);
    }

    @Override
    public List<S_SC_C> findAll(int cno) {
        return this.scDao.findAll(cno);
    }

    @Override
    public SC findBySnoAndCno(int sno, int cno) {
        return this.scDao.findBySnoAndCno(sno, cno);
    }
}
